import Vue from 'vue'
import App from './App'
import vueX from 'vuex'
import FastClick from 'fastclick';
import store_conf from './store'
import routes from './router'
import axios from 'axios'
import modules from './modules'

axios.defaults.baseURL = 'http://localhost:3000';

modules(Vue);
Vue.config.productionTip = false;
Vue.prototype.$http = axios;
Vue.prototype.$ELEMENT = {size: 'small'};

FastClick.attach(document.body);
Vue.use(vueX);

const store = new vueX.Store(store_conf);
const router = routes.call(this, store);

const app = new Vue({
  el: '#app',
  store,
  router,
  render: h => h(App)
})
